<?php


namespace app\api\model;


use think\Model;

class PrepareRelation extends Model
{
    protected $table = 'jxc.jxc_preparerelation';

    public function prepare()
    {
        return $this->belongsTo(Prepare::class, 'pid');
    }

    public function parent()
    {
        return $this->belongsTo(Prepare::class, 'pid');
    }
}
